public class Global {
    public static Character STATE_NAME = 65;
    public static int R_STATE_NAME = 1;

    /**
     * 打印邻接表
     * @return
     */
    public static void printGraph(NFAGraph nfaGraph){
        //打印边集
        System.out.println("边集：");
        for(int i = 0; i < nfaGraph.arcCount; i++){
            System.out.println(nfaGraph.arcCollection[i].start.name+"通过"+nfaGraph.arcCollection[i].access+"到"+nfaGraph.arcCollection[i].end.name);
        }
        //打印边数
        System.out.println("边数：" + nfaGraph.arcCount);
        //打印转换条件集
        System.out.print("转换条件集：");
        for(int i = 0; i < nfaGraph.access.size(); i++){
            System.out.print(nfaGraph.access.get(i) + " ");
        }
        System.out.println();
        //打印开始状态
        System.out.println("开始状态：" + nfaGraph.startState.name);
        //打印结束状态集
        System.out.print("结束状态：");
        for(int i = 0; i < nfaGraph.endStateList.size(); i++){
            System.out.print(nfaGraph.endStateList.get(i).name + " ");
        }
        System.out.println();
    }
}
